﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>WorkTime</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="~/Resources/mainFrame/css/bootstrap.min14ed.css" rel="stylesheet">
    <link href="~/Resources/mainFrame/css/font-awesome.min93e3.css" rel="stylesheet">
    <link href="~/Resources/mainFrame/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="~/Resources/mainFrame/css/animate.min.css" rel="stylesheet">
    <link href="~/Resources/mainFrame/css/style.min862f.css" rel="stylesheet">

    <link href="~/Resources/mainFrame/css/plugins/treeview/bootstrap-treeview.css" rel="stylesheet">
    <!--日期需要的css和js-->
    <link href="~/Resources/mainFrame/css/plugins/datapicker/datepicker3.css" rel="stylesheet" />
    <link href="~/Resources/css/BootTableHelp/pagination.css" rel="stylesheet" />
    <link href="~/Resources/mainFrame/js/plugins/zTree3/css/metroStyle/zTreeStyle.css" rel="stylesheet" />
</head>
<body class="panel-body" style="padding:5px;">
    <div class="row">
        <div id="divTree" class="col-sm-2" style="overflow:auto; border-right:1px solid gray;">
            <input type="text" name="searchArea" id="searchArea" style="width:100%;height:30px;" placeholder="请输入项目名称" />
            <select id="seSheng" style="width:100%;height:30px;"></select>
            <select id="seShi" style="width:100%;height:30px;"></select>
            <div id="divtreeDetail" style="overflow-y:auto; overflow-x:hidden;">
                <ul id="testTree" style="padding:0px;" class="ztree"></ul>
            </div>
        </div>
        <div class="col-sm-10">
            <div class="example">
                <table id="TableFromData" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>

    <div class="row form-button" id="WorkTimeTool">
        <input id="NodeUnitID" type="hidden" name="NodeUnitID" />
        <div class="col-sm-9" style="margin:0; padding:0;">
            <div class="input-group">
                <span class="input-group-btn">
                    @{
                        List<string> folderList = (List<string>)ViewBag.elementList;
                        if (folderList.Contains("btnSearch"))
                        {
                            <div class="col-sm-3">
                                <input id="textName" type="text" placeholder="输入姓名进行查找" class="form-control">
                            </div>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="txtSearchDate" placeholder="签到日期">
                            </div>
                            <div class="col-sm-3">
                                <select id="isNull" class="form-control" name="isNull">
                                    <option value=""></option>
                                    <option value="已签到">已签到</option>
                                    <option value="未签到">未签到</option>
                                </select>
                            </div>
                            <button id="btnSearch" type="button" class="btn btn-w-m btn-primary" style="margin-left:2px;">查找</button>
                            <button id="btnCheck" type="button" class="btn btn-w-m btn-primary" style="margin-left:2px;">补签</button>
                        }
                    }
                </span>
            </div>
        </div>
    </div>

    <div id="divCheck" style="display:none; margin:0px; padding:0;" class="col-sm-12">
        <div class="col-sm-12" style="padding:0; margin:0px;">
            <table id="check_table" data-mobile-responsive="true"></table>
        </div>
    </div>
    <div id="check_tool" class="col-sm-12">
        <input type="text" id="check_date" style="width:200px;" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control col-sm-3" placeholder="补签日期">
        <input type="text" id="check_reason" style="width:400px;" class="form-control col-sm-6" placeholder="补签原因(长度限制40)">
    </div>

    @Scripts.Render("~/bundles/mainScript")
    @Scripts.Render("~/bundles/bootstrap-table")
    @Scripts.Render("~/bundles/TreeViewItem")
    @Scripts.Render("~/bundles/z-tree")
    <!--引入bootstrap-table-help.JS文件。该文件包含一个table基类-->
    <script src="~/Resources/mainFrame/js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/datapicker/My97DatePicker/WdatePicker.js"></script>
    <script src="~/Scripts/bootstrap-table-help.js"></script>
    <script src="~/Scripts/bootstrap-tree-help.js"></script>
    <script src="~/Scripts/url-help.js"></script>
    <script src="~/Resources/layer-3.0.1/layer.js"></script>
    <script src="~/Resources/myScript/Person/WorkTime.js"></script>
    <script>
        $("#divTree").height($.GetBodyHeight());
        $("#divtreeDetail").height($.GetBodyHeight() - 90);
        //邦定tree
        Lutai.Load("seSheng", "seShi", "searchArea", "testTree", 1, treeClick);
        @*treeHelp.BindTree("treeview",@Html.Raw(ViewBag.TreeJson),treeClick);*@
    </script>
</body>
</html>